<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div>
	<jsp:useBean id="complaintTypeBean" scope="application"
		class="com.immunology.bean.ComplaintTypeBean" />
	<h2>Список типів скарг</h2>
	<form action="RedirectComplaintTypeParameterServlet" method="post">
		<c:forEach items="${complaintTypeBean.complaintTypeList}" var="syndromeMap">
			<h2>
				Синдром:
				<c:out value="${syndromeMap.key}"></c:out>
			</h2>
			<ul>
				<table class="table">
					<tr>
						<td>id</td>
						<td>Тип скарги</td>
						<td>Коефіцієнт</td>
						<td></td>
					</tr>
					<c:forEach
						items="${syndromeMap.value}" var="complaintType">
						<tr>
							<td><c:out value="${complaintType.id }" /></td>
							<td><c:out value="${complaintType.name }" /></td>
							<td><c:out value="${complaintType.multyplier }" /></td>
							<td class="submit">
								<input type="submit" name="${complaintType.id}"	value="Редагувати">
							</td>
						</tr>
					</c:forEach>
					<tr> </tr>
				</table>
			</ul>
		</c:forEach>
	</form>
</div>
